
/**
 * AppleIIGo
 * Mac OS X Controller
 * (C) 2007-2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#import <Cocoa/Cocoa.h>

#define APPLEIIGO_BASEURL	"http://www-personal.umich.edu/~mressl/appleiigo/"
#define APPLEIIGO_ABOUTURL	APPLEIIGO_BASEURL "index.html"
#define APPLEIIGO_UPDATEURL APPLEIIGO_BASEURL "update20.html"
#define APPLEIIGO_DONATEURL APPLEIIGO_BASEURL "donate.html"

@interface Controller : NSDocument

id lastCharacterSetMenuItem;

BOOL isLaunching;
BOOL isSheetOpen;
BOOL isColor;
BOOL isPaused;
BOOL isMuted;
int charset;

NSSpeechSynthesizer *speechSynthesizer;
NSWindow *documentWindow;

- (void)showMountMessage:(int)error;
- (IBAction)showPreferences:(id)sender;
- (IBAction)openDocument:(id)sender;
- (void)showMountMessageDidEnd:(NSWindow *)sheet returnCode:(int)returnCode
	contextInfo:(void *)contextInfo;
- (IBAction)copy:(id)sender;
- (IBAction)paste:(id)sender;
- (IBAction)startSpeaking:(id)sender;
- (IBAction)stopSpeaking:(id)sender;
- (IBAction)setFullscreen:(id)sender;
- (IBAction)setCharacterSetDefault:(id)sender;
- (IBAction)setCharacterSetDE:(id)sender;
- (IBAction)setCharacterSetDK:(id)sender;
- (IBAction)setCharacterSetES:(id)sender;
- (IBAction)setCharacterSetFR:(id)sender;
- (IBAction)setCharacterSetIT:(id)sender;
- (IBAction)setCharacterSetSE:(id)sender;
- (IBAction)setCharacterSetUK:(id)sender;
- (IBAction)setCharacterSetUS:(id)sender;
- (IBAction)toggleMute:(id)sender;
- (IBAction)togglePause:(id)sender;
- (IBAction)sendReset:(id)sender;
- (IBAction)sendRestart:(id)sender;
- (IBAction)showHelp:(id)sender;
- (IBAction)checkForUpdates:(id)sender;
- (IBAction)donate:(id)sender;

@end
